call clean.bat

set PYTHONPATH="C:\Python25"
set NSIS="C:\Program Files\NSIS\makensis.exe"
set IMGCFG="C:\Program Files\Imagecfg\imagecfg.exe"

rem %PYTHONPATH%\python.exe -OO winsetup.py py2exe
python.exe -OO winsetup.py py2exe

rem copy %PYTHONPATH%\msvcp71.dll dist\
mkdir dist\sound
copy sound\*.wav dist\sound
mkdir dist\llk_classic
copy llk_classic\* dist\llk_classic

cd dist

rem if exist %IMGCFG% goto imageconfig
rem goto makeinstaller
rem :imageconfig
rem %IMGCFG% -u BizSharp.exe
rem %IMGCFG% -a 0x1 BizSharp.exe

:makeinstaller
%NSIS% installSetup.nsi

cd ..
